<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
    <link rel="stylesheet" href="./font/iconfont copy.css">
    <style>
        #wrap{
            box-shadow: 0 0 12px gray;
            width: 400px;
            margin: 20px;
        }
        #wrap>div:first-of-type{
            border-bottom: 1px solid gray;
            padding: 10px;
        }
        #wrap>div:first-of-type>span:first-of-type{
            font-size: 18px;
        }
        #wrap>div:first-of-type>span:nth-child(2){
            color: orangered;
        }
        #wrap>div:first-of-type>span:nth-child(3){
            float: right;
            transform: rotate(90deg);
        }
        #wrap>div:last-child{
            display: flex;
            flex-wrap: wrap;
            padding: 10px;
        }
        #wrap>div:last-child>div{
            width: 33.333333%;
            text-align: center;
            box-sizing: border-box;
            padding: 10px;
        }
        #wrap>div:last-child>div>span{
            display: inline-block;
            width: 100%;
            background-color: #eee;
            border-radius: 5px;
            padding: 5px;
        }
        #wrap>div:last-child>div>span.active{
            background-color: orangered;
            color: white;
        }
    </style>
</head>
<body>
    <div id="app">
        <div id="wrap">
            <div>
                <span>区域：</span>
                <span>{{area}}</span>
                <span class="iconfont icon-right1"></span>
            </div>
            <div >
                <div @click=" area='江浙沪' ">
                    <span :class=" area=='江浙沪' ? 'active':'' ">江浙沪</span>
                </div>
                <div @click=" area='珠三角' ">
                    <span :class=" area=='珠三角' ? 'active':'' ">珠三角</span>
                </div>
                <div @click=" area='北京' ">
                    <span :class=" area=='北京' ? 'active':'' ">北京</span>
                </div>
            </div>
        </div>
    </div>
    <script>
        new Vue({
            el:"#app",
            data:{
                area:"请选择区域"
            }
        })
    </script>
</body>
</html>